package com.example.pro1.enums.logistics;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum LogisticsS {


    //推送回调地址
    SUBSCRIPTION("/getsub"),
    //订单状态0
    STATUS0("暂无轨迹信息"),
    //订单状态1
    STATUS1("已揽收"),
    //订单状态2
    STATUS2("在途中"),
    //订单状态3
    STATUS3("签收"),
    //订单状态4
    STATUS4("问题件");

    private final String type;

    public static String get(int i)
    {
        switch (i)
        {
            case 0:return STATUS0.type;
            case 1:return STATUS1.type;
            case 2:return STATUS2.type;
            case 3:return STATUS3.type;
            default:return STATUS4.type;
        }
    }
}
